﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Layouts/Administration.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    
    <h2>Protecting Configuration Sections</h2>
    <p>The textbox below contains the contents of the application's configuration file (web.config). You can click the "Encrypt Connection String" and "Decrypt Connection String" buttons to encrypt and decrypt the contents.</p>
    <p><strong>Web.config:</strong></p>
    <% Html.BeginForm(); %> 

    <p><%= Html.Encode(ViewData["WebConnectionString"])%></p>

    <input type="submit" name="submitButton" value="Encrypt" /> 
    <input type="submit" name="submitButton" value="Decrypt" /> 
    <% Html.EndForm(); %>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
